package com.wobito.pojo.vo.area;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * @Author Wangbaba
 * @Date 2024/8/27 9:26
 * @Version 1.0
 */
@Data
@ApiModel(value = "添加区域入参")
public class AddAreaVO {

    @ApiModelProperty(value = "区域名",required = true)
    @Size(min = 2,max = 20,message = "区域名长度必须在2-20位之间")
    private String name;

    @ApiModelProperty(value = "地址",required = true)
    @Size(min = 5,max = 50,message = "区域名长度必须在2-20位之间")
    private String address;
}
